package consul;

import consul.allinone.RpcURL;
import consul.allinone.regist.ConsulRegistService;

/**
 * Title:
 * Description:
 * Author:吉
 * Since:2018/4/13
 * Version:1.1.0
 */
public class MainUnRegister {

    public static void main(String[] args) {
        RpcURL url2 = new RpcURL("192.168.20.236", 8080);
        url2.setId("spjich_id");
        ConsulRegistService consulRegist = new ConsulRegistService("192.168.56.200", 8500);
        consulRegist.unregister(url2);
        System.out.println("将"+url2.getId()+"取消注册...");
    }
}
